<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
if($_RQ['op']=='main'){
	$setting=plugin('jy_weishop')->plugin_setting('coupon');
	if($_RQ['status']==1){
		$status=1;
		$return['status']=1;
	}else{
		$status=0;
		$return['status']=0;
	}
	$list=model('jy_weishop/coupon')->getmycoupon($status);
	$return['list']=$list;
	$return['setting']=$setting;
	exi($return);
}
?>